home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Views
/
RootPane.cp
< prev
next >
Wrap
Text File
|
1997-06-28
|
464b
|
28 lines
// RootPane.cp
#ifndef RootPane_h
#include "RootPane.h"
#endif
#ifndef WindowObject_h
#include "WindowObject.h"
#endif
#ifndef RegionObject_h
#include "RegionObject.h"
#endif
RootPane::RootPane( WindowObject& theWindow )
{
SetBounds( theWindow.LocalBounds() );
MapTo( theWindow );
}
void RootPane::Clip( RegionObject& region ) const
{
region &= Window().VisibleRegion();
}
void RootPane::UpdateBounds()
{
SetBounds( Window().LocalBounds() );
}